home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 May / Software of the Month Club 1996 May.iso / mac / ISO9660 / ZIPFILES / BMPWIZ.ZIP / EROSION.BAS < prev    next >
Unknown  |  1995-11-09  |  1.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert GW-BASIC (document/gwBasic) ext Supported
66% dexvert GFA-BASIC Atari (other/gfaBASICAtari) ext Supported
1% dexvert Amiga BASIC Protected File (other/amigaBASICProtectedFile) ext Unsupported
1% dexvert BAS VBDOS Pro 1.0 Source (other/basVBDOSPro10Source) ext Unsupported
1% dexvert Visual Basic Tokenized Source (other/visualBasicTokenizedSource) ext Unsupported
1% dexvert ZBASIC (other/zbasic) ext Unsupported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0e 04 00 00 0d 0a 27 20 | 45 72 6f 73 69 6f 6e 2e |......' |Erosion.|
|00000010| 20 0d 0a 27 20 43 6c 65 | 61 72 20 73 69 6e 67 6c | ..' Cle|ar singl|
|00000020| 65 20 70 69 78 65 6c 20 | 65 6c 69 6d 69 6e 61 74 |e pixel |eliminat|
|00000030| 69 6e 67 20 64 69 73 74 | 75 72 62 2e 0d 0a 27 20 |ing dist|urb...' |
|00000040| 43 6f 75 6c 64 20 61 6c | 73 6f 20 62 65 20 75 73 |Could al|so be us|
|00000050| 65 64 20 74 6f 20 63 6c | 65 61 6e 20 64 69 74 68 |ed to cl|ean dith|
|00000060| 65 72 65 64 20 42 26 57 | 20 69 6d 61 67 65 2e 0d |ered B&W| image..|
|00000070| 0a 0d 0a 27 20 49 6e 70 | 75 74 3a 09 31 20 62 69 |...' Inp|ut:.1 bi|
|00000080| 74 2c 20 42 2f 4e 0d 0a | 27 20 4f 75 74 70 75 74 |t, B/N..|' Output|
|00000090| 3a 09 31 20 62 69 74 2c | 20 42 2f 4e 0d 0a 0d 0a |:.1 bit,| B/N....|
|000000a0| 27 20 41 75 74 68 6f 72 | 3a 09 41 6e 64 72 65 61 |' Author|:.Andrea|
|000000b0| 20 42 65 6e 6f 6e 69 09 | 09 20 72 65 76 3a 09 31 | Benoni.|. rev:.1|
|000000c0| 2e 32 0d 0a 0d 0a 0d 0a | 73 74 72 69 6e 67 20 20 |.2......|string |
|000000d0| 20 20 09 69 6e 70 46 69 | 6c 65 2c 6f 75 74 46 69 | .inpFi|le,outFi|
|000000e0| 6c 65 0d 0a 44 65 76 43 | 6f 6e 09 49 62 6d 70 0d |le..DevC|on.Ibmp.|
|000000f0| 0a 52 47 42 09 70 69 78 | 2c 70 69 78 61 2c 70 69 |.RGB.pix|,pixa,pi|
|00000100| 78 62 2c 70 69 78 63 2c | 70 69 78 64 0d 0a 66 6c |xb,pixc,|pixd..fl|
|00000110| 6f 61 74 20 20 09 78 2c | 79 0d 0a 0d 0a 69 6e 70 |oat .x,|y....inp|
|00000120| 46 69 6c 65 3d 22 54 65 | 73 74 69 62 6e 2e 62 6d |File="Te|stibn.bm|
|00000130| 70 22 09 09 09 27 20 69 | 6e 70 75 74 20 66 69 6c |p"...' i|nput fil|
|00000140| 65 0d 0a 6f 75 74 46 69 | 6c 65 3d 22 54 65 73 74 |e..outFi|le="Test|
|00000150| 6f 2e 62 6d 70 22 09 09 | 09 27 20 6f 75 74 70 75 |o.bmp"..|.' outpu|
|00000160| 74 20 66 69 6c 65 0d 0a | 0d 0a 49 62 6d 70 3d 4c |t file..|..Ibmp=L|
|00000170| 6f 61 64 49 6d 61 67 65 | 28 69 6e 70 46 69 6c 65 |oadImage|(inpFile|
|00000180| 29 09 09 09 27 20 6c 6f | 61 64 20 69 6e 70 75 74 |)...' lo|ad input|
|00000190| 20 69 6d 61 67 65 0d 0a | 50 72 65 76 69 65 77 28 | image..|Preview(|
|000001a0| 49 62 6d 70 2c 22 49 6d | 61 67 65 22 2c 32 2c 35 |Ibmp,"Im|age",2,5|
|000001b0| 29 0d 0a 0d 0a 70 69 78 | 2e 4c 75 6d 3d 32 35 35 |)....pix|.Lum=255|
|000001c0| 0d 0a 46 6f 72 20 79 3d | 31 20 74 6f 20 49 62 6d |..For y=|1 to Ibm|
|000001d0| 70 2e 48 65 69 67 68 74 | 2d 32 0d 0a 20 20 20 46 |p.Height|-2.. F|
|000001e0| 6f 72 20 78 3d 31 20 74 | 6f 20 49 62 6d 70 2e 57 |or x=1 t|o Ibmp.W|
|000001f0| 69 64 74 68 2d 32 0d 0a | 20 20 20 20 20 20 20 20 |idth-2..| |
|00000200| 70 69 78 61 3d 47 65 74 | 50 69 78 65 6c 28 49 62 |pixa=Get|Pixel(Ib|
|00000210| 6d 70 2c 78 2c 79 29 0d | 0a 20 20 20 20 20 20 20 |mp,x,y).|. |
|00000220| 20 69 66 20 28 70 69 78 | 61 2e 4c 75 6d 3d 30 29 | if (pix|a.Lum=0)|
|00000230| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 70 69 |.. | pi|
|00000240| 78 61 3d 47 65 74 50 69 | 78 65 6c 28 49 62 6d 70 |xa=GetPi|xel(Ibmp|
|00000250| 2c 78 2d 31 2c 79 29 0d | 0a 20 20 20 20 20 20 20 |,x-1,y).|. |
|00000260| 20 20 20 20 20 70 69 78 | 62 3d 47 65 74 50 69 78 | pix|b=GetPix|
|00000270| 65 6c 28 49 62 6d 70 2c | 78 2c 79 2d 31 29 0d 0a |el(Ibmp,|x,y-1)..|
|00000280| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 69 78 63 | | pixc|
|00000290| 3d 47 65 74 50 69 78 65 | 6c 28 49 62 6d 70 2c 78 |=GetPixe|l(Ibmp,x|
|000002a0| 2b 31 2c 79 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |+1,y).. | |
|000002b0| 20 20 20 70 69 78 64 3d | 47 65 74 50 69 78 65 6c | pixd=|GetPixel|
|000002c0| 28 49 62 6d 70 2c 78 2c | 79 2b 31 29 0d 0a 20 20 |(Ibmp,x,|y+1).. |
|000002d0| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 70 69 | | if (pi|
|000002e0| 78 61 2e 4c 75 6d 20 2b | 20 70 69 78 62 2e 4c 75 |xa.Lum +| pixb.Lu|
|000002f0| 6d 20 2b 20 70 69 78 63 | 2e 4c 75 6d 20 2b 20 70 |m + pixc|.Lum + p|
|00000300| 69 78 64 2e 4c 75 6d 20 | 3e 20 37 36 34 29 0d 0a |ixd.Lum |> 764)..|
|00000310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 53 | | S|
|00000320| 65 74 50 69 78 65 6c 28 | 49 62 6d 70 2c 78 2c 79 |etPixel(|Ibmp,x,y|
|00000330| 2c 70 69 78 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |,pix).. | |
|00000340| 20 20 20 65 6e 64 69 66 | 0d 0a 20 20 20 20 20 20 | endif|.. |
|00000350| 20 20 65 6e 64 69 66 0d | 0a 20 20 20 4e 65 78 74 | endif.|. Next|
|00000360| 20 78 0d 0a 20 20 20 69 | 66 28 79 25 31 30 3d 30 | x.. i|f(y%10=0|
|00000370| 29 0d 0a 20 20 20 20 20 | 20 44 73 70 57 68 69 6c |).. | DspWhil|
|00000380| 65 28 22 45 72 6f 73 69 | 6f 6e 22 2c 31 30 30 2f |e("Erosi|on",100/|
|00000390| 49 62 6d 70 2e 48 65 69 | 67 68 74 2a 79 29 29 0d |Ibmp.Hei|ght*y)).|
|000003a0| 0a 20 20 20 65 6e 64 69 | 66 0d 0a 4e 65 78 74 20 |. endi|f..Next |
|000003b0| 79 0d 0a 0d 0a 44 73 70 | 57 68 69 6c 65 28 22 22 |y....Dsp|While(""|
|000003c0| 2c 30 29 0d 0a 50 72 65 | 76 69 65 77 28 49 62 6d |,0)..Pre|view(Ibm|
|000003d0| 70 2c 22 49 6d 6d 61 67 | 69 6e 65 22 2c 32 2c 35 |p,"Immag|ine",2,5|
|000003e0| 29 0d 0a 53 61 76 65 49 | 6d 61 67 65 28 49 62 6d |)..SaveI|mage(Ibm|
|000003f0| 70 2c 6f 75 74 46 69 6c | 65 29 0d 0a 44 73 70 4d |p,outFil|e)..DspM|
|00000400| 65 73 28 22 46 69 6c 74 | 65 72 69 6e 67 20 6f 6b |es("Filt|ering ok|
|00000410| 22 29 | |") | |
+--------+-------------------------+-------------------------+--------+--------+